package com.accenture.adf.newcodington.module11.activity.advanced;

public class Zoo implements RidesHosting {

	private int noOfAnimals=0;
	private String[] animalNames={""};
	// Safari class in composed in Zoo
	private Safari safari=null;
	private int zooRide=0;
	private int zooRideLocation=0;
	
	public void assignRideCategory() {
		zooRide=RidesHosting.HIGH_THRILL;
	}
	
	public int getNoOfAnimals() {
		return noOfAnimals;
	}

	public void setNoOfAnimals(int noOfAnimals) {
		this.noOfAnimals = noOfAnimals;
	}

	public String[] getAnimalNames() {
		return animalNames;
	}

	public void setAnimalNames(String[] animalNames) {
		this.animalNames = animalNames;
	}

	public Safari getSafari() {
		return safari;
	}

	public void setSafari(Safari safari) {
		this.safari = safari;
	}

	public int getZooRide() {
		return zooRide;
	}

	public void setZooRide(int zooRide) {
		this.zooRide = zooRide;
	}

	/**
	 * Method to display ride details based on ride type
	 */
	public String getRideDetails() {
		String rideDetails="";
		if(zooRide==RidesHosting.LOW_THRILL) {
			rideDetails="Low Thrill Rides for Childern";
		}
		if(zooRide==RidesHosting.HIGH_THRILL) 	{
			rideDetails="High Thrill Rides for Teens and Adults";
		}
		return rideDetails;
		
	}

	/**
	 * Method for assigning RIDETYPE based on the zooRide
	 */
	public void assignRideLocation() {
		zooRideLocation = RidesHosting.VIRTUAL;		
	}
	
	/**
	 * Method for getting RIDETYPE based on the parkRide
	 */
	public String getRideLocation() {
		String rideTypeDetails="";
		
		if(zooRideLocation == RidesHosting.INDOOR) {
			rideTypeDetails="Indoor Ride";
		}
		if(zooRideLocation == RidesHosting.OUTDOOR) {
			rideTypeDetails="Outdoor Ride";
		}
		if(zooRideLocation == RidesHosting.VIRTUAL) {
			rideTypeDetails="Virtual Ride";
		}
		return rideTypeDetails;
	}	

}
